package edu.washington.vaccine.ui;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import edu.washington.vaccine.R;

/*
 * Login screen page
 * Requests username and password
 */
public class LoginActivity extends Activity {
	@SuppressWarnings("unused")
	private static final String TAG = "LoginActivity";
	private Context context;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.login);
		this.context = this;
		Button loginButton = (Button) findViewById(R.id.login_button);
		loginButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(context, MainActivity.class);
				startActivity(i);
				finish();
			}
		});	
	}
}
